<template>
    <div class="shopcart">
      <div class="content">
        <div class="content-left">
          <div class="logo-warpper">
            <div class="logo">
              <span class="icon-shopping_cart"></span>
            </div>
          </div>
          <div class="price">9元</div>
          <div class="desc">另需配送费{{deliveryPrice}}元</div>
        </div>
        <div class="content-right"></div>
      </div>
    </div>
</template>

<style lang="stylus" rel="stylesheet/stylus">
.shopcart{
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 50;
  width:100%;
  height: 48px;
}
.shopcart .content{
  display: flex;
  background:#141d27;
  font-size: 0;
}
.shopcart .content .content-left{
  flex: 1;

}
.shopcart .content .content-left .logo-warpper{
  display: inline-block;
  position: relative;
  top: -10px;
  margin: 0 12px;
  padding: 6px;
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  vertical-align: top;
  border-radius: 50%;
  background: #141d27;
}
.shopcart .content .content-left .logo-warpper .logo{
  width:100%;
  height: 100%;
  border-radius: 50%;
  background: #42b983;
}
.shopcart .content .content-left .logo-warpper .logo .icon-shopping_cart{
  font-size: 24px;
  color: #2b343c;
  line-height: 44px;
}
.shopcart .content .content-left .price{
  display: inline-block;
  vertical-align: top;
  margin-top: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}
.shopcart .content .content-left .desc{
  display: inline-block;
  vertical-align: top;
  line-height: 24px;
  margin: 12px 0px 0px 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);

}
.shopcart .content .content-right{
  flex:0 0 105px;
  width: 105px;
}
</style>

<script type="text/ecmascript-6">
  export default {
    props: {
      deliveryPrice: {
        type: Number,
        default: 0
      },
      minPrice: {
        type: Number,
        default: 0
      }
    }
  }
</script>
